import { defineStore } from 'pinia';

const useSettingStore = defineStore('setting', {
	state: () => {
		return { btnStatus:0 };
	},
	// 也可以这样定义
	// state: () => ({ count: 0 })
	actions: {
		btnStatusChange(val) {
            this.btnStatus=val
			
		},
	},
    getters:{
        btnStatus1:(state)=>state.btnStatus
    }
});
export default useSettingStore